package com.qf.service.impl;

import com.qf.dao.BorrowDao;
import com.qf.loanapplication.Loanapplication;
import com.qf.operators.Operators;
import com.qf.service.BorrowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BorrowServiceImpl implements BorrowService {

    @Autowired
    BorrowDao borrowDao;

    @Override
    public Loanapplication selectOneById(Integer id) {
        return borrowDao.selectOneById(id);
    }

    @Override
    public int updateOneProposerById(Loanapplication loanapplication) {
        return borrowDao.updateOneProposerById(loanapplication);
    }

    @Override
    public int deleteOneProposerById(Integer id) {
        return borrowDao.deleteByProposerId(id);
    }

    @Override
    public int insertOneProposer(Loanapplication loanapplication) {
        return borrowDao.insertOneProposer(loanapplication);
    }

}
